package com.Brave.manager.Demo03;

public class Demo04 {
    public static void main(String[] args) {

        MyThread m1 = new MyThread();
        MyThread m2 = new MyThread();

        m1.setName("高铁1");
        m2.setName("飞机2");

        MyThread m3 = new MyThread("汽车3");
        MyThread m4 = new MyThread("轮船4");

        m1.start();
        m2.start();
        m3.start();
        m4.start();

        System.out.println(Thread.currentThread().getName());

    }
}
